<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="icon" href="/favicon.ico" type="image/x-icon" />
    <meta name="verify-v1" content="Y5vj2OiQqXigk3PuqZ3Lo75DyrIpnPrrV1+U6bBc2A8=" />
    <meta name="y_key" content="8b599710ad81f61e" />
    <meta name="author" content="Thiago Sampaio" />
    <meta name="DC.title" content="thiagosampaio.com" />
    <meta name="robots" content="ALL" />
    <meta name="distribution" content="Global" />
    <meta name="rating" content="General" />
    <meta name="doc-class" content="Completed" />
    <meta name="description" content="Um simples supervisor..." />
    <%= javascript_include_tag :defaults %>
    <%= javascript_include_tag 'clock.js' %>
    <%= active_scaffold_includes %>
    <%= stylesheet_link_tag "inicios" %>
    <%= stylesheet_link_tag "pro_dropdown_6/pro_dropdown_6.css" %>   
    <title>SysTatic - Sistema de Monitoramento</title>
  </head>
  <body id='inicio' onload="initTimer();">
    <span class="preload1"></span>
    <span class="preload2"></span>
    <div id='container'>
      <div id='header'>
        <img src="../images/logo_alpargatas.gif" id='logomarca'>
        <span id='slogan'>
          <label class='title'>Systatic - Sistema de Monitoramento</label>
          <br>
          Usuário: <%=Usuario.find(session[:user]).nome.nome_proprio%>
        </span>
        <ul id="nav">
          <li class="top"><a href="/inicios" class="top_link"><span>Início</span></a></li>
          <li class="top"><a href="" id="products" class="top_link"><span class="down">Ações</span><!--[if gte IE 7]><!--></a><!--<![endif]-->
            <!--[if lte IE 6]><table><tr><td><![endif]-->
            <ul class="sub">
              <li><a href="" class="fly">Transportes<!--[if gte IE 7]><!--></a><!--<![endif]-->
                                         <!--[if lte IE 6]><table><tr><td><![endif]-->
                <ul>
                  <li><%= link_to "CELCLI", :controller=>"celcli"%></li>
                  <li><%= link_to "WM", :controller=>"wm"%></li>
                  <li><%= link_to "Geral", :controller=>"transportes"%></li>
                </ul>              
                <!--[if lte IE 6]></td></tr></table></a><![endif]-->
              </li>
            </ul><!--[if lte IE 6]></td></tr></table></a><![endif]-->
          </li>
          <% usr = Usuario.find(session[:user])%>
          <% if usr.tipousuario.id == 1%>
            <li class="top"><a href="" id="products" class="top_link"><span class="down">Manutenção</span><!--[if gte IE 7]><!--></a><!--<![endif]-->
          <!--[if lte IE 6]><table><tr><td><![endif]-->
              <ul class="sub">
                <li><%= link_to "Configurações", :controller=>"configuracaos"%></li>
                <li><%= link_to "Fat. Anterior", :controller=>"fatants"%></li>
                <li><%= link_to "Deposito", :controller=>"depositos"%></li>
                <li><%= link_to "Tipo de Envio", :controller=>"tipos"%></li>
                <li><%= link_to "Transportadora", :controller=>"transportadoras"%></li>
                <li><%= link_to "Destino", :controller=>"ufs"%></li>
                <li><%= link_to "Status", :controller=>"statuses"%></li>
                <li><%= link_to "Usuários", :controller=>"usuarios"%></li>
                <li><%= link_to "Liberados", :controller=>"liberadas"%></li>
                <li><%= link_to "Cancelados", :controller=>"canceladas"%></li>
              </ul><!--[if lte IE 6]></td></tr></table></a><![endif]-->
            </li>
          <% end %>
          <li class="top"><a href="" id="products" class="top_link"><span class="down">Paineis</span><!--[if gte IE 7]><!--></a><!--<![endif]-->
    <!--[if lte IE 6]><table><tr><td><![endif]-->
            <ul class="sub">
              <li><%= link_to "Gerando/Gerados", :controller=>"relatorios", :action => "wm"%></li>
              <li><%= link_to "Em BOX", :controller=>"relatorios", :action => "wm_geral"%></li>
              <li><%= link_to "Resumo", :controller=>"relatorios", :action => "resumo"%></li>
            </ul><!--[if lte IE 6]></td></tr></table></a><![endif]-->
          </li>
          <li class="top"><a href="/feedbacks" id="products" class="top_link"><span class="down">FeedBack</span><!--[if gte IE 7]><!--></a><!--<![endif]-->
    <!--[if lte IE 6]><table><tr><td><![endif]-->
            <ul class="sub">
              <li><%= link_to "Contato", :controller=>"feedbacks"%></li>
              <li><%= link_to "Imprimir", :controller=>"feedbacks", :action => "print"%></li>
            </ul><!--[if lte IE 6]></td></tr></table></a><![endif]-->
          </li>
          <li class="top"><a href="/login/sair" id="privacy" class="top_link"><span>Sair</span></a></li>
        </ul>   
      </div>
      <div id='content'>
        <%= yield%>
      </div>
      <div id='footer'>
        
      </div>
    </div>
  </body>
</html>
